
-- Done :
-- ---------------------------
-- - Texture fixes
--    - blood
-- - Unregister npc igor
-- - Unregister npc trader

-- Todo :
-- ---------------------------
-- - Texture fixes
--    - chicken item

-- - Unregister unused craftitem
-- - All meats are raw meats ?
-- - Add npc farmer

local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
-- local S = minetest.get_translator(modname)

if not minetest.global_exists("mobs") then return end

if minetest.global_exists("mobs_npc") then

  -- Setting to enable / disable inventory for Npcs
  mobs_npc.enable_inventory = minetest.settings:get_bool('mobs_npc.enable_inventory', true)

  -- Add missing settings to enable / disable traders and igor npc
  dofile(modpath..'/unregister_mobs.lua')

  if minetest.registered_entities['mobs_npc:npc']
  and minetest.global_exists("simple_dialogs") then

    if mobs_npc.enable_inventory then
      dofile(modpath..'/inventory.lua')
    end
    dofile(modpath..'/npc.lua')

----TODO :
-- For add farmers, miners, healers, warriors, hunter, builders etc..
-- Each of them based on npc but with :
-- -- Specific stats
-- -- Specific dialogs presets
-- -- Specific actions
-- -- Selected texture

-- For exemple, healers could be wizards, magicians, priest / priestess, medic, etc..
-- based on the texture. The dialogs would also be different but all would offer a dialog action (heal the player).
-- Healer would heal players and other mobs
-- Farmer would harvest differents things.
-- Hunters would attack wildlife
-- Miners would dig tunels and build mines
-- Builder woulb build houses
-- Woodcutters would chop trees
-- Postman would go a player, deliver a message and return with a reply

-- Warriors, archers would attack monsters -- but they a are just npc with special equipement
-- Battle Mages ?

-- They would need a kind of inventory and maybe an area from wich not to wander outside
-- Once tamed, the player can use them

    -- if minetest.get_modpath('farming') then
      -- dofile(modpath..'/farmer.lua')
    -- end
    -- dofile(modpath..'/miner.lua')
    -- dofile(modpath..'/wizzard.lua')
    -- dofile(modpath..'/wizzard.lua')
  end
end

